You use the GetPictFromDIB function to create a QuickDraw PicHandle from a handle to a DIB.
PicHandle GetPictFromDIB (void *h);
The GetPictFromDIB function returns a PicHandle when passed a handle to a DIB. The caller is responsible for releasing the memory of the PicHandle . You call the function KillPicture to release the memory of PicHandle .
Note that this function does not work for HBITMAP .
The format of the DIB handle is the same as returned by GetClipboardData with CF_DIB .
| Previous | Chapter Contents | Chapter Top | Next |